<?php

// 菜单数据

$temp = [
    [
        'id' => 1,
        'name' => '主页',
        'path' => '',
        'sub_menu' => [
            [
                'id' => 2,
                'name' => '首页',
                'path' => 'admin/statistics/index',
                'sub_menu' => []
            ], [
                'id' => 3,
                'name' => '商品统计',
                'path' => 'admin/statistics/goods',
                'sub_menu' => []
            ], [
                'id' => 4,
                'name' => '用户统计',
                'path' => 'admin/statistics/user',
                'sub_menu' => []
            ]
        ]
    ], [
        'id' => 5,
        'name' => '营销',
        'path' => '',
        'sub_menu' => [
            [
                'id' => 6,
                'name' => '优惠券',
                'path' => '',
                'sub_menu' => [
                    [
                        'id' => 7,
                        'name' => '优惠券列表',
                        'path' => 'admin/marketing/coupon/index',
                        'sub_menu' => []
                    ], [
                        'id' => 8,
                        'name' => '用户领取记录',
                        'path' => 'admin/marketing/coupon/history',
                        'sub_menu' => []
                    ]
                ]
            ], [
                'id' => 9,
                'name' => '积分管理',
                'path' => '',
                'sub_menu' => [
                    [
                        'id' => 10,
                        'name' => '积分配置',
                        'path' => 'admin/marketing/integral/config',
                        'sub_menu' => []
                    ], [
                        'id' => 11,
                        'name' => '签到配置',
                        'path' => 'admin/marketing/integral/sign',
                        'sub_menu' => []
                    ],
                ]
            ]
        ]
    ]
];
dump(json_encode($temp, JSON_UNESCAPED_UNICODE));die;